<script type="text/javascript" >
    AppComm.include.load("${cfg.jsPath}/${table.entityPath}Form.js'/>","js");
</script>

<div class="layui-tab-item layui-show">
    <br>
    <div class="layui-tab-item layui-show">
        <div class="${table.entityPath}Form_box"></div>
    </div>
</div>

<script id="${table.entityPath}Form_template" type="text/html">
    <form class="layui-form" action="" style="height: 355px;">
        <div class="layui-tab-item layui-show" style="width:692px;margin: 0 auto;">
            <input type="hidden" id="id" value="{{id}}" lay-verify="id">
            <div class="layui-form-item">
            <#list cfg.tableFieldList as tableField>
                <div class="layui-inline">
                    <label class="layui-form-label layui-required">${tableField.comment}</label>
                    <div class="layui-input-inline">
                        <input type="text" id="${tableField.propertyName}" name="${tableField.propertyName}" lay-verify="required" placeholder="请输入${tableField.comment}" autocomplete="off" class="layui-input" value="{{${tableField.propertyName}}}">
                    </div>
                </div>
            </#list>
            </div>
            <br>
            <div class="layui-form-item" style="text-align: center;">
                <div class="layui-inline">
                    ${cfg.hasPermissionTag}"${table.entityPath}:save" html='<button type="submit" class="layui-btn layui-btn-default layui-btn-sm" lay-submit lay-filter="saveBtn">提交</button>'/>
                    <button class="layui-btn layui-btn-primary layui-btn-sm" id="cancelBtn">取消</button>
                </div>
            </div>
        </div>
    </form>
</script>